package com.miao.service;

import com.miao.dto.CoursePreviewDto;
import com.miao.pojo.CoursePublish;
import com.baomidou.mybatisplus.extension.service.IService;
import freemarker.template.TemplateException;

import java.io.File;
import java.io.IOException;

/**
 * <p>
 * 课程发布 服务类
 * </p>
 *
 * @author author
 * @since 2023-12-21
 */
//课程发布相关接口
public interface ICoursePublishService extends IService<CoursePublish> {

    public CoursePreviewDto getCoursePreview(Long courseId);

    public void commitAuditCourse(Long courseId, Long comId);

    public void publishCourse(Long courseId, Long comId);

    public void uploadHtml(Long courseId, File file) throws Exception;

    public File geneteHtml(Long courseId) throws IOException, TemplateException;

    public CoursePublish getCoursePublishCache(Long courseId);
}
